package com.cloud.logger.zchain.zchainserver.service;

import com.cloud.logger.zchain.annotation.ZchainScheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 浙江卓锐科技股份有限公司
 *
 * @author zhengyt
 * @create 2017/11/30
 * @description
 */
@Component
public class SaveLoggerAdBugTimer {

    @Resource
    AngelaPjMonthAdWeekService angelaPjMonthAdWeekService;

    @Resource
    CheckProjectService checkProjectService;

    @Resource
    private LoginService loginService;

    @ZchainScheduled(cron = "00 01 03 * * ?")
    public void SaveLogger() {
        angelaPjMonthAdWeekService.saveLoggerAdBugTimer();
    }

    @ZchainScheduled(cron = "00 01 03 * * ?")
    public void deleteLoggerMonthAgo() {
        angelaPjMonthAdWeekService.deleteLogMonthAgo();
    }

    @ZchainScheduled(cron="0 */5 * * * ?")
    public void checkProject() {
        checkProjectService.checkProject();
    }

    @ZchainScheduled(cron="0 */5 * * * ?")
    public void cleanUserMap() {
        loginService.cleanUserMap();
    }

}